package interfaces;

public class LGRemoteTV extends RemoteTV {
	
	public void channelUp() {
		nChannel = nChannel + 2;
		System.out.println("LG TV 채널 up! 현재채널: " + nChannel);
	}
	
	public void channelDown() {
		nChannel--;
		System.out.println("LG TV 채널 down! 현재채널: " + nChannel);
	}
	
	public static void main(String[] args) {
//		IRemoteControl irc = new IRemoteControl();	// ERROR
//		RemoteTV rtv = new RemoteTV();	// ERROR
		
//		System.out.println("상수값 변경 시도");
//		IRemoteControl.CHANNEL_MAX = 200;	// ERROR
		
		LGRemoteTV tv = new LGRemoteTV();
		
		tv.powerOn();
		tv.channelUp();
		tv.channelUp();
		tv.channelUp();
		tv.channelDown();
		tv.channelDown();
		tv.powerOff();
		
	}
	
}
